AdFit 수익·비용 기록과 관리자 ROI 조회 지원 - #458
Merged
Merged
Conversation
Constraint: AdFit 수익은 콘솔 수동 입력값이며 자동 동기화가 아니다 Tested: AdFit 계산 및 권한과 기존 광고 회귀 테스트 28건 Confidence: high Scope-risk: narrow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AdFit 광고 단위별 일일 수익·비용을 관리자 API로 저장하고 기간별 ROI를 조회할 수 있도록 합니다. 홈·큐레이션·마이페이지가 공유하는 광고 단위는 한 번만 합산합니다.
GET /api/v1/admin/adfit,PUT /api/v1/admin/adfit/daily추가, ADMIN 권한 적용(수익 - 비용) / 비용 × 100계산. 미입력 날짜·혼합 비용 기준·0원 비용은 ROI nulladfit_daily_reports와 SQL·API 문서 추가검증: 계산·입력·관리자 권한 및 기존 광고 회귀 테스트 28건 통과. 운영 데이터 조회는 미검증.